package com.flyxiaozhu.erp.core.repositories;

import com.flyxiaozhu.erp.core.entities.GoodsOrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author flyxiaozhu
 * @date 2019-04-26 18:40
 */
public interface GoodsOrderDetailRepository extends JpaRepository<GoodsOrderDetail, Long> {
    GoodsOrderDetail findByOrderIdAndGoodsIdAndSkuId(Long orderId, Long goodsId, Long skuId);

    List<GoodsOrderDetail> findByOrderId(Long orderId);

    List<GoodsOrderDetail> findByGoodsNameLike(String goodsName);
}
